import request from '@/router/axios';


// 主板详情
export const iotdeviceDetail = (data) => {
  return request({
    url: '/api/uic-system/iotfirmwareupgrade/page',
    method: 'get',
    params: {
      ...data
    }
  })
}


// 固件升级记录分页列表
export const iotfirmwareupgradePage = (data) => {
  return request({
    url: '/api/uic-system/iotfirmwareupgrade/page',
    method: 'get',
    params: {
      ...data
    }
  })
}


// 新增或修改主板
export const iotdeviceSubmit = (row) => {
  return request({
    url: '/api/uic-system/iotdevice/submit',
    method: 'post',
    data: row
  })
}




// 删除主板
export const iotfirmwareupgradeRemove = (row) => {
  return request({
    url: '/api/uic-system/iotfirmwareupgrade/remove',
    method: 'post',
    data: row
  })
}

// 固件升级
export const iotfirmwareupgradeUpgrade = (row) => {
  return request({
    url: '/api/uic-system/iotfirmwareupgrade/upgrade',
    method: 'post',
    data: row
  })
}
